<!DOCTYPE html>
<html lang="en">
<head>
[#include "/customer/include/static.htm"]
    <link href="${path}/resources/css/user.css?v=2" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/plug/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <link href="${path}/resources/plug/layer/layer.js" rel="stylesheet" type="text/css"/>
    <style type="text/css">
        option {
            font-size: 14px;
            line-height: 20px;
        }
    </style>

[#import "/customer/include/pagination.ftl" as p/]
</head>

<body>
<!--头部-->
[#include "/customer/include/header.ftl"]


<div class="member">
    <!--左边-->
[#include "/customer/include/member_left_menu.ftl"]

    <!--左边 end-->
    <div class="memberRight">
        <div class="member_tab">
            <div class="member_tab">
                <a  href="${path}/member/auth">实名认证</a>
                <a  href="${path}/member/auth/mobile">手机认证</a>
                <a   href="${path}/member/auth/email">邮箱认证</a>
                <a class="on" href="${path}/member/auth/vip">VIP认证</a>
            </div>
        </div>
        <div class="member_tab_info">
            <table class="layui-table">
                <tbody>

                <tr>
                    <td>选择客服：</td>
                    <td>
                        <select name="vip" id="vip" class="layui-input"  [#if iskefu==1]disabled[/#if]>
                        [#list kefus as kefu]
                            <option value=${kefu.id} [#if kefu_id==kefu.id]selected="selected"[/#if]>${kefu.name}</option>
                        [/#list]
                        </select>
                    </td>
                </tr>

                </tbody>

            </table>
            <div class="span10">
                <button class="layui-btn   layui-btn-danger" style="background-color: #F3485A;" lay-submit lay-filter="MainForm" type="submit" onclick="gocheck()" >
                    确认提交
                </button>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="${path}/resources/plug/layui/layui.js"></script>
<script>
    layui.use(['form','layer'], function(){
        var form = layui.form(), $=layui.jquery, layer = layui.layer;

    });
    //检查输入提交注册
    function gocheck(){
        ajax( {
            type : "post",
            url : "${path}/member/kefusubmit",
            dataType:"text",
            data : {
                "kefu_id" :   $("#vip").find("option:selected").val()

            },
            success : function(result) {
                layer.msg("选择成功",function() {
                    window.location.href="${path}/member/";
                });


            }
        });

    }
</script>
[#include "/customer/include/footer.ftl"]
</body>
</html>
